@extends('layouts.admin_common') @section('content')


    <div class="breadcrumbs_container">{{
	Breadcrumbs::render('admin.show_stock') }}</div>
    <div class="system_tab_line"></div>

    <div class="lyx_search_table">
        <form>
            <div class="row">
                <div class="form-group row col-sm-4">
                    <label for="inputPassword" class="col-sm-4 col-form-label">@lang('symessages.info.stock_name')</label>
                    <div class="col-sm-8">
                        <select class="form-control" name="storehouse">
                            <option value="">@lang('symessages.info.all_msg')</option>
                            @foreach ($storehouse as $sh)
                                <option value="{{$sh->storehouse_id}}" <?php is_selected($sh->storehouse_id,$param,'storehouse') ?> >{{$sh->storehouse_name}}</option>
                            @endforeach
                        </select>
                    </div>
                </div>
            </div>

            <div class="row">
                <div class="form-group row col-sm-4">
                    <label for="inputPassword" class="col-sm-4 col-form-label">@lang('symessages.info.category')</label>
                    <div class="col-sm-8">
                        <select class="form-control" name="category">
                            <option value="">@lang('symessages.info.all_msg')</option>
                            @foreach ($category as $cat)
                                <option value="{{$cat->category_code}}" <?php is_selected($cat->category_code,$param,'category') ?> >{{$cat->category_name}}</option>
                            @endforeach
                        </select>
                    </div>
                </div>

                {{--<div class="form-group row col-sm-4">--}}
                    {{--<label for="inputPassword" class="col-sm-4 col-form-label">@lang('symessages.info.group')</label>--}}
                    {{--<div class="col-sm-8">--}}
                        {{--<select class="form-control" >--}}
                            {{--<option>和の極み -煉-</option>--}}
                            {{--<option>2</option>--}}
                            {{--<option>3</option>--}}
                            {{--<option>4</option>--}}
                            {{--<option>5</option>--}}
                        {{--</select>--}}
                    {{--</div>--}}
                {{--</div>--}}

                <div class="form-group row col-sm-4">
                    <label for="inputPassword" class="col-sm-4 col-form-label">@lang('symessages.info.product_code')</label>
                    <div class="col-sm-8">
                        <select class="form-control" name="goods_code_code">
                            <option value="">@lang('symessages.info.all_msg')</option>
                            @foreach ($goods as $goo)
                                <option value="{{$goo->goods_code}}" <?php is_selected($goo->goods_code,$param,'goods_code_code') ?> >{{$goo->goods_code}}</option>
                            @endforeach
                        </select>
                    </div>
                </div>
            </div>

            <div class="row">
                <div class="form-group row col-sm-4">
                    <label for="inputPassword" class="col-sm-4 col-form-label">@lang('symessages.info.product_name')</label>
                    <div class="col-sm-8">
                        <select class="form-control" name="goods_code_name" >
                            <option value="">@lang('symessages.info.all_msg')</option>
                            @foreach ($goods as $goo)
                                    <option value="{{$goo->goods_code}}" <?php is_selected($goo->goods_code,$param,'goods_code_name') ?> >{{$goo->goods_name}}</option>
                            @endforeach
                        </select>
                    </div>
                </div>

                <div class="form-group row col-sm-4">
                    <label for="inputPassword" class="col-sm-4 col-form-label" name="colors">@lang('symessages.info.color')</label>
                    <div class="col-sm-8">
                        <select class="form-control" name="color">
                            <option value="">@lang('symessages.info.all_msg')</option>
                            @foreach ($colors as $key=>$col)
                                <option value="{{$col}}" <?php is_selected($col,$param,'color') ?> >{{$col}} </option>
                            @endforeach
                        </select>
                    </div>
                </div>

                <div class="form-group row col-sm-4">
                    <label for="inputPassword" class="col-sm-4 col-form-label">@lang('symessages.info.size')</label>
                    <div class="col-sm-8">
                        <select class="form-control" name="size">
                            <option value="">@lang('symessages.info.all_msg')</option>
                            @foreach ($size as $key=>$col)
                                <option value="{{$col}}" <?php is_selected($col,$param,'size') ?> >{{$col}}</option>
                            @endforeach
                        </select>
                    </div>
                </div>
            </div>


            <div class="row">
                <div class="col-sm-6"></div>
                <div class="col-sm-3">
                    <button class="btn btn-primary button_normal">检索</button>
                </div>
            </div>

        </form>


        <div class="lyx_table">
            {{--<div class="row lyx_table_title">--}}
                {{--<div class="col-sm-1"></div>--}}
                {{--<div class="col-sm-7">androJapan 在庫一覧</div>--}}
                {{--<div class="col-sm-4">出力日:2018 / 8/31</div>--}}
            {{--</div>--}}
            <table class="table table-bordered">
                <thead>
                <tr>
                    <th scope="col">@lang('symessages.info.category')</th>
                    <th scope="col">@lang('symessages.info.product_code')</th>
                    <th scope="col">@lang('symessages.info.product_name')</th>
                    <th scope="col">@lang('symessages.info.color')</th>
                    <th scope="col">@lang('symessages.info.size')</th>
                    <th scope="col">@lang('symessages.info.web_num')</th>
                    <th scope="col">@lang('symessages.info.store_num')</th>
                    <th scope="col">@lang('symessages.info.good_num')</th>
                    <th scope="col">@lang('symessages.info.bad_num')</th>
                </tr>
                </thead>
                <tbody>
                @foreach ($list as $k=>$val)
                <tr>
                    <td>{{$val->category_name}}</td>
                    <td>{{$val->goods_code}}</td>
                    <td>{{$val->goods_name}}</td>
                    <td>{{$val->color}}</td>
                    <td>{{$val->size}}</td>
                    <td>{{$val->web_num}}</td>
                    <td>{{$val->num+$val->bad_num}}</td>
                    <td>{{$val->num}}</td>
                    <td>{{$val->bad_num}}</td>
                </tr>
                @endforeach
                </tbody>
            </table>
        </div>

    </div>


@endsection

